Conditions | 2 |
Total Lines | 9 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { |
||
28 | |||
29 | @Get(':id') |
||
30 | @Roles(UserRole.COOPERATOR, UserRole.EMPLOYEE) |
||
31 | @ApiOperation({summary: 'Get project'}) |
||
32 | public async index(@Param() { id }: IdDTO): Promise<ProjectView> { |
||
33 | try { |
||
34 | return await this.queryBus.execute(new GetProjectByIdQuery(id)); |
||
35 | } catch (e) { |
||
36 | throw new NotFoundException(e.message); |
||
37 | } |
||
40 |